package cn.tedu._02notice.controller;

import cn.tedu._02notice.pojo.dto.UserLoginParam;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@Tag(name="02-用户管理模块")
@RestController
@RequestMapping("/v1/user/")
public class UserController {

    @PostMapping("login")
    public String login(@RequestBody UserLoginParam userLoginParam) {
        System.out.println("用户登录参数：" + userLoginParam);
        return "用户登录成功！";
    }
}
